projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f634684
)
printing: Make GtkPrinter have a useful icon by default
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 4 Oct 2014 16:19:15 +0000
(12:19 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 4 Oct 2014 16:20:17 +0000
(12:20 -0400)
It causes complication elsewhere if gtk_printer_get_icon_name()
returns NULL initially. So make the icon name default to
"printer".
gtk/gtkprinter.c
patch
|
blob
|
history
diff --git
a/gtk/gtkprinter.c
b/gtk/gtkprinter.c
index 63d327b9729946c3e9825cc4bcee01a48ea8f39e..c34eafb136f5e372c4fa939264aca94be8307deb 100644
(file)
--- a/
gtk/gtkprinter.c
+++ b/
gtk/gtkprinter.c
@@
-243,7
+243,7
@@
gtk_printer_init (GtkPrinter *printer)
priv->name = NULL;
priv->location = NULL;
priv->description = NULL;
- priv->icon_name =
NULL
;
+ priv->icon_name =
g_strdup ("printer")
;
priv->is_active = TRUE;
priv->is_paused = FALSE;